﻿using System.Collections.Generic;
using System.Windows.Forms;
using Microsoft.TeamFoundation.VersionControl.Client;
using TfsMerge.Control;

namespace TfsMerge.View
{
    public partial class TrackView : BaseForm
    {
        public TrackView(int changesetId, IEnumerable<ExtendedMerge> extendedMerges)
        {
            InitializeComponent();

            var trackViewControl = new TrackViewControl { Dock = DockStyle.Fill };
            Controls.Add(trackViewControl);
            trackViewControl.CreateGraph(changesetId, extendedMerges);
        }
    }
}
